<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="description" content="">
  <meta name="author" content="ThemeBucket">
  <link type="image/x-icon" href="/favicon.ico" rel="shortcut icon">
  <title>区域经理管理</title>

  {include file='public/comm_css.html'}

  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
  <script src="js/html5shiv.js"></script>
  <script src="js/respond.min.js"></script>
  <![endif]-->
</head>

<body class="sticky-header">

<section>
    <!-- left side start-->
    {include file='public/left.html'}
    
    <!-- left side end-->
    
    <!-- main content start-->
    <div class="main-content" >

        <!-- header section start-->
        {include file='public/header.html'}
        <!-- header section end-->

        <!-- page heading start-->
        <div class="page-heading">
            <h3>
                区域经理管理
            </h3>
            <!--
            	作者：zhouming925@163.com
            	时间：2016-09-20
            	描述：
            
            <ul class="breadcrumb">
                <li>
                    <a href="#">Dashboard</a>
                </li>
                <li>
                    <a href="#">Data Table</a>
                </li>
                <li class="active"> Basic Table </li>
            </ul>
            -->
        </div>
        <!-- page heading end-->

        <!--body wrapper start-->
        <div class="wrapper">
            <div class="row">
				<div class="col-md-8"></div>
				<div class="col-md-4">
					<div class="input-group m-bot15">
						<input type="text" class="form-control" placeholder="手机号码查询">
						<span class="input-group-btn">
							<button class="btn btn-default" type="button">Go!</button>
						</span>
					</div>					
				</div>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <section class="panel">
                        <div class="panel-body">
                            <table class="table  table-hover general-table table-bordered">
                                <thead>
                                <tr>
                                    <th class="col-md-1">姓名</th>
                                    <th class="col-md-2">手机号码</th>
                                    <th class="col-md-7">分管区域</th>
                                    <th class="col-md-2">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                	{foreach from=$manager_list item=manager}
                                	<tr>
                                    <td class="col-md-1">{$manager.realname}</td>
                                    <td class="col-md-2">{$manager.tel}</td>
                                    <td class="col-md-7">
                                    		{if $manager.area_list|@count > 0}
		                                    	{foreach from=$manager.area_list item=area}
		                                    		<span class="label label-success">{$area.name}</span>
		                                    	{/foreach}
		                                    	<a href="/area/manager_detail/{$manager.id}" class="btn btn-info active btn-md" target="_blank">修改</a>
	                                    	{else}
	                                    		<span class="label label-danger">没有分配区域</span>
	                                    		<a href="/area/manager_detail/{$manager.id}" class="btn btn-info active btn-md" target="_blank">去分配</a>
	                                    	{/if}
                                    </td>
                                    <td class="col-md-2">
                                    		<a href="http://www.dawangfu.com/admin/index.php?Model=18&cmd=edit&id={$manager.id}" target="_blank" class="btn btn-success active btn-xs">信息查看</a>
                                    		<a href="http://www.dawangfu.com/admin/orderList.php?manager_id={$manager.id}" target="_blank"  class="btn btn-success active btn-xs">订单查看</a>
                                    		<!--
                                            <a href="#" class="btn btn-danger active btn-xs">删除</a>
                                        -->
                                    </td>
                                </tr>
                                	{/foreach}
                                </tbody>
                            </table>
                        </div>
                    </section>
                </div>
            </div>
        </div>
        <!--body wrapper end-->
		
        <!--footer section start-->
        <footer>
            2014 &copy; AdminEx by ThemeBucket
        </footer>
        <!--footer section end-->


    </div>
    <!-- main content end-->
</section>

{include file="public/comm_js.html"}

</body>
</html>
